package com.example.survey23.mapper;

import com.example.survey23.entity.AnswerBankRadio;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 23Group
 * @since 2022-11-10
 */
@Repository
public interface AnswerBankRadioMapper extends BaseMapper<AnswerBankRadio> {
    @Select("select max(id) from  answer_bank_radio")
    int getMaxRId();

    @Select("select * from answer_bank_radio where pro_id = #{id}")
    List<AnswerBankRadio> getRadioOptions(Integer id);
}
